﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Entity.PagedList<Entity.Car_Rental.ProductProperty>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
       属性管理-属性列表</h2>
    <table width="100%" cellpadding="3" cellspacing="1" id="listTable" class="liebiao_table">
        <tr>
            <th>
            </th>
            <th>
                名称
            </th>
            <th>
                说明
            </th>
            <th>
                分类
            </th>
        </tr>
        <%if (Model != null && Model.Count > 0)
          {
              foreach (var item in Model)
              {
        %>
        <tr>
            <td>
                <%: Html.ActionLink("编辑", "Details", new { id = item.PropertyID,flag="edit" })%>
                |
                <%: Html.ActionLink("查看 ", "Details", new { id = item.PropertyID, flag = "see" })%>
                |
                <%: Html.ActionLink("删除", "Delete", new { id = item.PropertyID })%>
            </td>
            <td>
                <%=item.PropertyName %>
            </td>
            <td>
                <%=item.Info %>
            </td>
            <td>
                <%=item.ProductPropertyType_Extend.Name %>
            </td>
        </tr>
        <%}
          } %>
        <tfoot>
            <tr>
                <td colspan="5">
                    <%=Html.Pager(Model) %>
                </td>
            </tr>
        </tfoot>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">    <script>
                                                                                       tablelist();</script>
</asp:Content>
